package com.ruoyi.pos.domain;

import java.math.BigDecimal;
import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单管理对象 _order
 *
 * @author wzh
 * @date 2021-05-19
 */
public class Order extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 订单uuid */
    @Excel(name = "订单uuid")
    private String orderCode;

    /** 顾客id */
    @Excel(name = "顾客id")
    private Long cuid;

    /** 操作员id */
    @Excel(name = "操作员id")
    private Long opId;

    /** 店铺id */
    @Excel(name = "店铺id")
    private Long shopId;

    /** 订单总金额 */
    @Excel(name = "订单总金额")
    private BigDecimal total;

    /** 0代表正常，1代表退货，2代表换货 */
    @Excel(name = "1代表正常，0代表退货，2代表换货")
    private Integer status;

    /** $table.subTable.functionName信息 */
    private List<OrderItem> orderItemList;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setOrderCode(String orderCode)
    {
        this.orderCode = orderCode;
    }

    public String getOrderCode()
    {
        return orderCode;
    }
    public void setCuid(Long cuid)
    {
        this.cuid = cuid;
    }

    public Long getCuid()
    {
        return cuid;
    }
    public void setOpId(Long opId)
    {
        this.opId = opId;
    }

    public Long getOpId()
    {
        return opId;
    }
    public void setShopId(Long shopId)
    {
        this.shopId = shopId;
    }

    public Long getShopId()
    {
        return shopId;
    }
    public void setTotal(BigDecimal total)
    {
        this.total = total;
    }

    public BigDecimal getTotal()
    {
        return total;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    public List<OrderItem> getOrderItemList()
    {
        return orderItemList;
    }

    public void setOrderItemList(List<OrderItem> orderItemList)
    {
        this.orderItemList = orderItemList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("orderCode", getOrderCode())
                .append("cuid", getCuid())
                .append("createTime", getCreateTime())
                .append("opId", getOpId())
                .append("shopId", getShopId())
                .append("total", getTotal())
                .append("status", getStatus())
                .append("orderItemList", getOrderItemList())
                .toString();
    }
}
